<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">  
<html>
  <head>
  <base target="_self"/>
  
  <title>表单基本信息添加页面</title>
  	<meta http-equiv="X-UA-Compatible" content="IE=7" />
    <link rel="stylesheet" type="text/css" href="<%=path %>/web/style/layout.css" />
     <script type="text/javascript" src="<%=path %>/jqGrid/js/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="<%=path %>/jslib/jquery.validate.min.js"></script>
    <script type='text/javascript' src="<%=request.getContextPath() %>/jslib/My97DatePicker/WdatePicker.js" defer="defer"></script>
    <script type='text/javascript' src="<%=request.getContextPath() %>/jslib/jquery.form.js"></script>
    <script type="text/javascript" src="<%=request.getContextPath() %>/jslib/additional-methods.js"></script>
    <link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/jslib/jquery-easyui-1.4.1/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/jslib/jquery-easyui-1.4.1/themes/icon.css">
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/jslib/jquery-easyui-1.4.1/demo.css">
	<script type="text/javascript" src="<%=request.getContextPath() %>/jslib/jquery-easyui-1.4.1/jquery.easyui.min.js"></script>
    <c:if test="${requestScope.message!=null}">
		<script type="text/javascript">
 	 		     alert('<c:out value="${requestScope.message}"></c:out>');
 	 		     window.close();
 		</script>
	</c:if>
    <script type="text/javascript">
    var api = frameElement.api, W = api.opener;
    $().ready(function() {
		$('#closeBtn').click(function(){
			api.close();
		});
	});
</script>

 <style type="text/css">
	body{
		background:#ffffff; background-image:url(images/);
	}
</style>


</head>
<body>
  	<form action="" id="pageFrom" name="" method="post">
  		<table width="100%" border="0" align="center" cellpadding="5" cellspacing="5" class="formTableNew">
		  <tr>
		    <td align="right" width="10%">查询表名：</td>
		    <td align="left">
				<input type="text" id="queryTable" name="queryTable" readonly=readonly value="${QUERY_TABLE}" style="border: 1px solid #999;padding: 5px;width: 160px;" maxlength="40"/>
				<input type="hidden" id="foreignTableId"  name="foreignTableId" value="" readonly="readonly"/>	
				<img src="<%=request.getContextPath() %>/web/images/form_icon_1.gif" width="23" height="23" border="0" onclick="chooseQueryTable()" title="选择" style="margin-bottom:-6px;cursor:hand;" </img>
		   		<img src="<%=request.getContextPath() %>/images/xh.png"></img>
		    </td>
		    <td align="right" width="10%">查询字段：</td>
		    <td align="left">
				<input type="text" id="queryField" name="queryField" readonly=readonly value="${QUERY_FIELD}" maxlength="20" style="border: 1px solid #999;padding: 5px;width: 160px;" maxlength="40"/>				
		   		<img src="<%=request.getContextPath() %>/web/images/form_icon_1.gif" width="23" height="23" border="0" onclick="chooseQueryField();" title="选择" style="margin-bottom:-6px;cursor:hand;" />
		   		<img src="<%=request.getContextPath() %>/images/xh.png"></img>
		    </td>	
		  </tr>
		  <tr> 
		    <td align="right" width="10%">条件表名：</td>
		    <td align="left">
				<input type="text" id="conditionTable" name="conditionTable" readonly=readonly value="${CONDITION_TABLE}" maxlength="20" style="border: 1px solid #999;padding: 5px;width: 160px;" maxlength="40"/>
				<input type="hidden" id="conditionTableId"  name="conditionTableId" value="" readonly="readonly"/>
		   		<img src="<%=request.getContextPath() %>/web/images/form_icon_1.gif" width="23" height="23" border="0" onclick="chooseConditionTable();" title="选择" style="margin-bottom:-6px;cursor:hand;" />
		    	<img src="<%=request.getContextPath() %>/images/xh.png"></img>
		    </td>
		    <td align="right" width="20%">条件字段：</td>
		    <td align="left">
				<input type="text" id="conditionField" name="conditionField" readonly=readonly value="${CONDITION_FIELD_EN}" maxlength="20" style="border: 1px solid #999;padding: 5px;width: 160px;" maxlength="40"/>
				<input type="text" id="conditionFieldCn" name="conditionFieldCn" readonly=readonly value="${CONDITION_FIELD_CN}" maxlength="20" style="border: 1px solid #999;padding: 5px;width: 160px;" maxlength="40"/>				
		   		<img src="<%=request.getContextPath() %>/web/images/form_icon_1.gif" width="23" height="23" border="0" onclick="chooseConditionField();" title="选择" style="margin-bottom:-6px;cursor:hand;" />
		    	<img src="<%=request.getContextPath() %>/images/xh.png"></img>
		    </td>		 
		  </tr>
		    <tr> 
		    <td align="right" width="20%">条件主键：</td>
		    <td align="left">
				<input type="text" id="conditionMain" name="conditionMain" readonly=readonly value="${MAIN_FIELD}" maxlength="20" style="border: 1px solid #999;padding: 5px;width: 160px;" maxlength="40"/>			
		   		<img src="<%=request.getContextPath() %>/web/images/form_icon_1.gif" width="23" height="23" border="0" onclick="chooseConditionMainField();" title="选择" style="margin-bottom:-6px;cursor:hand;" />
		    </td>
		    <td align="right" width="20%">查询外键：</td>
		    <td align="left">
				<input type="text" id="queryForeign" name="queryForeign" readonly=readonly value="${FOREIGN_FIELD}" maxlength="20" style="border: 1px solid #999;padding: 5px;width: 160px;" maxlength="40"/>
		   		<img src="<%=request.getContextPath() %>/web/images/form_icon_1.gif" width="23" height="23" border="0" onclick="chooseQueryForeignField();" title="选择" style="margin-bottom:-6px;cursor:hand;" />
		    </td>		 
		  </tr>
		   <tr> 
		    <td align="right" width="20%">所属查询：</td>
		    <td align="left">
				<input type="text" id="owner" name="owner" readonly=readonly value="${OWNER}" maxlength="20" style="border: 1px solid #999;padding: 5px;width: 160px;" maxlength="40"/>			
		    </td>
		   </tr>
		  <tr>
		    <td align="center" colspan="4" >
		      	<input type="button" id="closeBtn" value="关闭" class="form_bt_grey" />
		    </td>
		  </tr>
		</table>
		<input type="hidden" id="formType" name="formType" value="<%=request.getParameter("fromtype") %>" />
	</form>
  </body>
</html>